package cn.honqun.tinycms.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class LoginVO implements Serializable {
    /**
     * 用户名
     */
    @NotEmpty(message = "用户名/手机号是必须的")
    @Schema(description = "用户名/或手机号")
    private String username;
    /**
     * 密码
     */
    @NotEmpty(message = "密码是必须的")
    @Schema(description = "密码")
    private String password;
    /**
     * 记住我
     */
    private Boolean rememberMe;
}
